import { Global, Module } from '@nestjs/common'
import { ConfigService } from './config/config.service'
import { ConfigModule } from '@nestjs/config/dist'
import { PrismaService } from './prisma/prisma.service'
import appConfig from '../../config'

@Global()
@Module({
   imports: [
      ConfigModule.forRoot({
         load: [appConfig]
      })
   ],
   providers: [ConfigService, PrismaService],
   exports: [ConfigService, PrismaService]
})
export class CommonModule {}
